package tarena.netctoss.po;

import java.util.Date;
import java.util.Set;

/**
 * 用户的业务实体类
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-3-8
 */
public class User implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	/** User_Id */
	private Integer id;
	/** 用户名 */
	private String name;
	/** 登录名 */
	private String loginname;
	/** 登录密码 */
	private String loginpassword;
	/** 状态 */
	private Integer status;
	/** 电话 */
	private String phone;
	/** E-mail */
	private String email;
	/** 登录时间 */
	private Date enrolldate;
	/** 下线时间 */
	private Date closedate;
	/** 支付方式 */
	private String paymenttpye;
	/** 职业 */
	private String career;
	/** 国籍 */
	private String nationality;
	/** 性别 */
	private Short sex;
	/** 公司 */
	private String company;
	/** 邮编 */
	private String zip;
	/** 拥有的业务 */
	private Set<Business> business;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String name, String loginname, String loginpassword,
			Integer status, Date enrolldate, String paymenttpye, Short sex) {
		this.name = name;
		this.loginname = loginname;
		this.loginpassword = loginpassword;
		this.status = status;
		this.enrolldate = enrolldate;
		this.paymenttpye = paymenttpye;
		this.sex = sex;
	}

	/** full constructor */
	public User(String name, String loginname, String loginpassword,
			Integer status, String phone, String email, Date enrolldate,
			Date closedate, String paymenttpye, String career,
			String nationality, Short sex, String company, String zip) {
		this.name = name;
		this.loginname = loginname;
		this.loginpassword = loginpassword;
		this.status = status;
		this.phone = phone;
		this.email = email;
		this.enrolldate = enrolldate;
		this.closedate = closedate;
		this.paymenttpye = paymenttpye;
		this.career = career;
		this.nationality = nationality;
		this.sex = sex;
		this.company = company;
		this.zip = zip;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLoginname() {
		return this.loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getLoginpassword() {
		return this.loginpassword;
	}

	public void setLoginpassword(String loginpassword) {
		this.loginpassword = loginpassword;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getenrolldate() {
		return this.enrolldate;
	}

	public void setenrolldate(Date enrolldate) {
		this.enrolldate = enrolldate;
	}

	public Date getClosedate() {
		return this.closedate;
	}

	public void setClosedate(Date closedate) {
		this.closedate = closedate;
	}

	public String getPaymenttpye() {
		return this.paymenttpye;
	}

	public void setPaymenttpye(String paymenttpye) {
		this.paymenttpye = paymenttpye;
	}

	public String getCareer() {
		return this.career;
	}

	public void setCareer(String career) {
		this.career = career;
	}

	public String getNationality() {
		return this.nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public Short getSex() {
		return this.sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public Set<Business> getbusiness() {
		return business;
	}

	public void setbusiness(Set<Business> business) {
		this.business = business;
	}

}